home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 16
/
Aminet 16 (1996)(GTI - Schatztruhe)[!][Dec 1996].iso
/
Aminet
/
util
/
moni
/
lcdcpu.lha
/
lcdcpu.doc
< prev
next >
Wrap
Text File
|
1996-10-30
|
5KB
|
100 lines
lcdcpu.doc
NAME
lcdcpu - display a CPU meter on external LCD
VERSION
V1.1 - 21.10.96
SYNOPSIS
lcdcpu Interval/N,Toggleint/N,Clock/S,Mem/S,MemBar/S
REQUIREMENTS
- the "Executive" task scheduler. lcdcpu uses Executive's
"SysInfo.library" to read current CPU load.
- the "LCDaemon" hard- and software project. Minimum LCDaemon version
is V1.6, previous versions didn't support programmable characters.
DESCRIPTION
I got the idea for lcdcpu from an SGI machine on CeBit where they had
a small LC display to show the current load of the 16 or so CPUs :-)
As the "LCDaemon" project (available on AmiNet in hard/hack) allows to
connect an LC display to the Amiga's parallel port, I decided to
complement the Executive task scheduler package (on AmiNet as well)
and LCDaemon to give a similar display. Optionally it can also show a
clock and/or memory meter.
Parameters are as follows:
- Interval/N: interval between two display updates in seconds
- ToggleInt/N: number of updates to pass before toggling between
clock and memory display
- Clock/S: show a clock below the CPU bargraph
- Mem/S: show free memory in KB, numeric
- MemBar/S: show free memory as bargraphs
If both Clock and Mem/MemBar are specified, lcdcpu will simply toggle
between both. Default is to toggle every third display update if
nothing else was specified with ToggleInt/N. Giving TglInt/N alone
makes lcdcpu assume you want both Clock/S and Mem/S.
If you don't want either of them, some percent values for the
bargraph will be printed in the second line.
BUGS
- It seems in non-exclusive display access mode (display may be shared
by multiple programs, which is a feature of LCDaemon I do not want
to switch off) it's not possible to make the cursor invisible.
Looks quite ugly :-(
- Can only use the upper two lines of multi-line LCDs
- Crashes if Executive is not running. This seems to be a
SysInfo.library problem though, especially because its signal
notficaion system is also buggy.
(Last note: Executive V2.0b has the notification bug fixed [thanx
Petri!], I haven't checked if the crash problem is fixed as well
though.)
HISTORY
V0.9 (09.06.96) First release
V1.0 (27.08.96) Oops...there actually *were* bugs :-)
This is in fact almost a complete rewrite.
- Implemented programmable character support
for a nicer bar.
- removed some unnecessary sysinfo.library
calls when using update intervals > 1.
- Fixed possible problems with VMem (some
structures which should have been "static"
were not)
- sysinfo.library's name has changed to
"SysInfo.library" :-(
V1.01 (29.08.96) - Some source cleanup, also made the
executable smaller.
- One unnecessary custom char was allocated
on the LCD. Fixed.
- On at least 18 characters wide displays,
the clock display now shows seconds.
- More meaningful errormessages & returncodes
V1.02 (30.08.96) - Specifying TglInt/N is now sufficient to
activate both clock and memory display.
V1.03 (19.10.96) - Intervals of 0 caused a division-by-zero
crash :( Fixed. Thanx to MaXiM for the
bugreport!
- minor changes in errormessages
V1.04 (20.10.96) - Fixed a (harmless) enforcer hit in the
memdisplay routine caused by bogus
sprintf() parameters.
V1.1 (21.10.96) - Implemented bargraph display of free memory
(parameter MemBar/S)
TODO
- more Executive system statistics maybe...
AUTHOR
Matthias Bethke
Giessener Strasse 31
35457 Lollar
Germany
postmaster@sweetdreams.lahn.de
Matthias Bethke@39:176/208.0